import time
def qisti(dims):
    swapped=true
    while swapped:
        swapped=false
        for i in range(len(dims)-1):
            if dimps[i]>dims[i+1]:
                dims[i],dims[i+1]=dims[i+1],dims[i]
                swapped=true
def listicks(fillename);
    file=open(filename,'r')
    data=file.realines()
    return data
d1=listicks('m1_sorted.txt')
d2=listicks('m2_reverse.txt')
d3=listicks('m3_shuffle.txt')
t_start=time.time()
qisti(d1)
t_finish=time.time()
print('m1_sorted',round((d_finish-d_start)*1000),'milliseconds')


t_start=time.time()
qisti(d2)
t_finish=time.time()
print('m2_reverse',round((d_finish-d_start)*1000),'milliseconds')


t_start=time.time()
qisti(d3)
t_finish=time.time()
print('m3_shuffle',round((d_finish-d_start)*1000),'milliseconds')
